GIR_REPO := https://github.com/gtk-rs/gir.git
GIR_VERSION := 2d1ffab19eb5f9a2f0d7a294dbf07517dab4d989
-OSTREE_REPO := https://github.com/ostreedev/ostree.git
-OSTREE_VERSION := v2020.7
+OSTREE_REPO := https://github.com/fkrull/ostree.git
+OSTREE_VERSION := patch-v2020.7
RUSTDOC_STRIPPER_VERSION := 0.1.13
all: gir
line="1078">Signature engine used to check superblock</doc>
<type name="Sign" c:type="OstreeSign*"/>
</parameter>
- <parameter name="out_success_message" transfer-ownership="none">
+ <parameter name="out_success_message"
+ direction="out"
+ caller-allocates="0"
+ transfer-ownership="full"
+ nullable="1"
+ optional="1"
+ allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-static-delta-core.c"
line="1079">success message</doc>
}
#[cfg(any(feature = "v2020_7", feature = "dox"))]
- pub fn static_delta_verify_signature<P: IsA<Sign>>(&self, delta_id: &str, sign: &P, out_success_message: &str) -> Result<(), glib::Error> {
+ pub fn static_delta_verify_signature<P: IsA<Sign>>(&self, delta_id: &str, sign: &P) -> Result<Option<GString>, glib::Error> {
unsafe {
+ let mut out_success_message = ptr::null_mut();
let mut error = ptr::null_mut();
- let _ = ostree_sys::ostree_repo_static_delta_verify_signature(self.to_glib_none().0, delta_id.to_glib_none().0, sign.as_ref().to_glib_none().0, out_success_message.to_glib_none().0, &mut error);
- if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
+ let _ = ostree_sys::ostree_repo_static_delta_verify_signature(self.to_glib_none().0, delta_id.to_glib_none().0, sign.as_ref().to_glib_none().0, &mut out_success_message, &mut error);
+ if error.is_null() { Ok(from_glib_full(out_success_message)) } else { Err(from_glib_full(error)) }
}
}